package com.snake.springboot.custom.service.job;


import com.snake.springboot.custom.api.service.base.CustPointsExpireService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * <p>积分回收任务执行器
 * 类{@code CustPointsExpireJob} </br>
 * 创建时间2025/5/6 16:02
 * @author yangxt
 * @see
 */
@Component
public class CustPointsExpireJob {

    private CustPointsExpireService expireService;
    @Autowired
    public CustPointsExpireJob(CustPointsExpireService expireService) {
        this.expireService = expireService;
    }

    @XxlJob("customPointsExpireJob")
    public void customPointsExpireJob(){
        expireService.customPointsExpire();

    }

}
